package cn.xiaoyangh.basic.service;

import cn.xiaoyangh.basic.domain.BaseDomain;
import cn.xiaoyangh.basic.query.BaseQuery;
import cn.xiaoyangh.basic.util.PageList;

import java.util.List;

public interface IBaseService<T> {
    void  save(T t);
    void remove(Long id);
    void update(T t);
    List<T> loadAll();
    T loadById(Long id);

    //分页    总条数+分页
    PageList<T> queryData(BaseQuery bq);

    void deleteAll(List<Long> list);
}
